package com.qfedu.dao;

import com.qfedu.entity.Askforleave;

import java.util.List;

public interface AskforleaveDao {

    /**
     * 增加请假请求
     * @param askforleave
     * @return
     */
    int addAskforleave(Askforleave askforleave);

    /**
     * 查询所有请假
     * @return
     */
    List<Askforleave> findAllAskforleave();

    /**
     * 根据id删除
     * @param id
     * @return
     */
    int deleteAskforleave(int id);

    /**
     * 更新
     * @param askforleave
     * @return
     */
    int updateAskforleave(Askforleave askforleave);

    Askforleave getAskForById(int id);
}
